﻿@if (Request.IsAuthenticated) {
    <text>
        Hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
        }
    </text>
} else {
    <form action="@Url.Action("Login", "Account")" method="post" class="navbar-form pull-right">
        <input class="span2" name="UserName" type="text" placeholder="Email">
        <input class="span2" name="Password" type="password" placeholder="Password">
        <input type="hidden" name="RememberMe" value="False" />
        <button type="submit" class="btn">Entrar</button>
        @Html.AntiForgeryToken()
    </form>
}
